// dlg.txt

//MK edit
//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 36;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter Etzae, the northern city of the Low Dhaga. It is an old settlement. The massive stone buildings of the Dhagans are on display, but the centuries of sun and sand have left them looking worn. The ruins of Etzae's once-proud walls ring the city.";
	text2 = "It is a poor town, far from the affluence of the coast. The men in the streets are quiet and anxious. Eyes peer at you from windows as you pass.";
	text3 = "You have traveled enough to recognize this particular sort of fear: They sense that trouble is coming, and they are getting ready.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0 && gf(36,16) == 4;
	text1 = "You enter the men's quarters of the inn and wait for Raiman. And wait. And wait.";
	text2 = "Eventually, you realize that he is not coming. He got his freedom. He probably used the hours since to put miles between himself and Etzae.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "__";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "__";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "__";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Master Aurichalcum

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "The Master of Etzae is a grim, middle-aged man, sitting upright on his throne. He sits like a statue. Only his eyes move as you approach. When he speaks, his voice is deep, slow, and utterly lacking warmth.";
	text2 = "_Envoy of Haven. I am Aurichalcum, chosen Master of Etzae. While you are here, I will guide you and give you your due._ He sits like a statue, waiting for a response.";
	text5 = "Master Aurichalcum sits and watches you. As you speak, other Ro bring you tea, food, and everything else required to show respect. The Master neither eats nor drinks.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(36,11) == 0;
	question = "_I am [P] [N] of Haven. Greetings to you._";
	text1 = "The Master nods slightly. This was the proper response. _Let us carry out our business. We will help you complete your work. Then you can depart._";
	code =
		ro_faction(2);
		sf(36,11,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(36,11) == 0;
	question = "_Hello. Haven sent me to clean up your messes._";
	text1 = "The Master frowns. He takes your response as an insult. _The Queen sent you. You have a job. I will help you do it. Then you can go._";
	code =
		ro_faction(-2);
		sf(36,11,1);
	break;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(36,11) == 0 && gf(31,11) == 3;
	question = "_Raasa Lawita sent me. I am hunting the raiders that plague your land._";
	text1 = "The Master nods slightly. He approves of your directness. _You were sent to do a job. It is a task that needs doing. We will aid you in completing it. Then you can leave._";
	code =
		ro_faction(1);
		sf(36,11,1);
	break;

begintalknode;
	state = 11;
	nextstate = 10;
	condition = 1;
	question = "_You are eager for me to go._";
	text1 = "_I am the Low Dhaga's man of stone. It is a time of war. This is a bad time for Haven to be here. I will give you your due, and no more._ You wait for him to elaborate. He doesn't. He stares at you, waiting for your next request.";

begintalknode;
	state = 10;
	nextstate = 12;
	condition = gf(36,11) > 0;
	question = "_You are the Master here._";
	text1 = "_That is my role. I serve my Raasa and am his will here in Etzae and the northern Dhaga._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_What does a Master do?_";
	text1 = "_Other vassals have their own words for it. Mayor. Lord. Chief. I am Raasa Lawita's eyes and ears. And, when need be, his fist._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_How did you become Master?_";
	text1 = "_I was chosen by a Raasa. I have served here twenty years. I was Master when Raasa Lawita was chosen. He honored me by keeping me in this post._";

begintalknode;
	state = 13;
	nextstate = 28;
	condition = 1;
	question = "_Tell me about Raasa Lawita._";
	text1 = "_He is worthy of the role. He is capable of kindness and diplomacy when it is needed. He draws blood without hesitation when that is needed. He is full Ro._";
	text2 = "_If you are still evaluating who should be governor of the Low Dhaga, I have a thought._";
	code =
		if (gf(80,11) > 0)
			rs(2);
	break;

begintalknode;
	state = 28;
	nextstate = -1;
	condition = 1;
	question = "_Yes?_";
	text1 = "_You should talk to Raasa Lawita. If you feel trapped with Governor Aato in charge, he may have a solution._";
	
begintalknode;
	state = 10;
	nextstate = 14;
	condition = gf(36,11) > 0;
	question = "_I would like to learn about the Low Dhaga._";
	text1 = "_You should have learned about it before now. Our blood is in your veins. We are a land of wealth. A land of principles and customs, though your folk find them odd._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_What is your wealth?_";
	text1 = "_Strength, discipline, and will. We are Ro. To us, those are our strengths._";
	text2 = "_Outsiders see our stone and our ability to work it. Though Haven forbids us from building the walls and fortresses that are our greatest strength._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_You have odd customs?_";
	text1 = "_This is a harsh land, barren and violent. Prone to chaos. We keep our women under close guard, to protect them from the harshness of our world._";
	text2 = "_Outsiders see us as backward and cruel for this. It is our way. I will not discuss it further._";
	
begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_My father was from the Rokaj._";
	text1 = "_I know. He was Consort Darmal. I met him when he returned to his homeland. He did his duty to the Rokaj._";
	text2 = "Master Aurichalcum then surprises you by turning his head. He inspects you closely.";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_What do you see?_";
	text1 = "_Your father was true Ro. Strong and full of resolve. A proper Consort for a queen. You ... You are soft. Coddled by Haven's wealth. You are half-Ro by blood, but your spirit is not of our people._ He looks away.";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = gf(36,12) == 0;
	question = "_I didn't come here to be judged by you, Ro._";
	text1 = "He grants you another brief glance. Then the tiniest of nods. _An appropriate response. Perhaps there is a drop of our blood in you._";
	code =
		ro_faction(2);
		sf(36,12,1);
	break;
	
begintalknode;
	state = 16;
	nextstate = -1;
	condition = gf(36,12) == 0;
	question = "_I hope you find that I live up to my father's example._";
	text1 = "He gives his head a tiny shake. _You care about my approval? You have truly lost sight of our ways._";
	code =
		ro_faction(-2);
		sf(36,12,1);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(31,11) < 3 && gf(36,11) > 0;
	question = "_Raasa Lawita petitioned me to fight the brigands._";
	text1 = "_Then you should go south and speak with him. It is not my place to help you until I have the Raasa's permission._";

begintalknode;
	state = 10;
	nextstate = 17;
	condition = gf(31,11) == 3 && gf(42,11) == 0;
	question = "_Raasa Lawita sent me to you for help fighting the brigands._";
	text1 = "_Word came here ahead of you. I have prepared. I will not spare soldiers to help you. I will give advice. You will find their weaknesses, and you will strike._";
	text2 = "_First, I will tell you about Fort Cariaris._";
	text3 = "_It is time to prepare for an assault of Ouachita Mountain._";
	text4 = "_It is good for Haven's interests that you came. Some of these raiders want to kill you. You have not properly taken revenge. In our eyes, you are very weak._";
	code =
		if (gf(36,15) == 0) {
			sf(36,15,1);
			toggle_quest(14,6);
			}
		if (has_spec_item(38))
			rs(2);
			else rs(3);
	break;

begintalknode;
	state = 17;
	nextstate = 18;
	condition = has_spec_item(37) == 0 && has_spec_item(38) == 0;
	question = "_I could use your advice._";
	text1 = "_My scouts have been busy. We prepared for your arrival. The leaders of the raiders seem to infest the tunnels under Ouachita Mountain._";
	text2 = "_You are not prepared for that fight. Instead, I believe you should seek weaker prey. We need knowledge about their weaknesses._";

begintalknode;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "_I could just assault Ouachita Mountain._";
	text1 = "_You may go there at any time. It is north. Hard to find. If you enter the endless maze of tunnels under that peak, you will be at their mercy. If you are determined to meet your fate there, I won't stop you._";

begintalknode;
	state = 18;
	nextstate = 19;
	condition = 1;
	question = "_Where can I find these weaker brigands?_";
	text1 = "_They have infested the ruins of Fort Cariaris, to the south. The raiders have a strong defensive position. This is a good time to show off the great strength Haven claims._";

begintalknode;
	state = 19;
	nextstate = 29;
	condition = 1;
	question = "_Tell me about Fort Cariaris._";
	text1 = "_It is an old tower, a strong fort in the upwards Dhaga. Many rebels have claimed it. Some were strong enough to hold it._";
	text2 = "_It is full of our mutual enemies. Slay them. See what you can learn about them._";

begintalknode;
	state = 29;
	nextstate = -1;
	condition = 1;
	question = "_What do we need to learn?_";
	text1 = "_Their plans. Their abilities. Most importantly, how they command the ka-beasts. That is their secret._";

begintalknode;
	state = 17;
	nextstate = 20;
	condition = has_spec_item(37) > 0;
	question = "_I have been to Fort Cariaris and found this._ Show the staff.";
	text1 = "You actually succeed in getting a reaction from the Master. His eyebrows rise slightly and he leans forward. _A staff. An artifact, captured from the raiders._";
	text2 = "_Tell me more._";

begintalknode;
	state = 20;
	nextstate = 21;
	condition = 1;
	question = "_It seemed to control the ka-beasts._";
	text1 = "_I had not thought you would learn something useful. You did. This staff ... I can sense power. I can't properly analyze it, but we have resources._";

begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_Who can I talk to?_";
	text1 = "_This is work for the Erudico. They have a tower in the corner of town. Talk to Erud Mirwa. He is my guide in these matters._";

begintalknode;
	state = 17;
	nextstate = 22;
	condition = has_spec_item(38) > 0;
	question = "_Erud Mirwa did something to the staff I found._";
	text1 = "_Then you may actually be capable of confronting the raiders. To do so, you need to face the labyrinth of Ouachita Mountain. You need to know how to approach it._";
	code =
			toggle_quest(14,7);
	break;
	
begintalknode;
	state = 22;
	nextstate = -1;
	condition = gf(38,12) == 0;
	question = "_I don't know a good route into Ouachita Mountain._";
	text1 = "_Then attacking it will be very dangerous. You should return to Fort Cariaris make sure that you have found all of the knowledge those ruins have to offer._";

begintalknode;
	state = 22;
	nextstate = 23;
	condition = gf(38,12) > 0;
	question = "_The raiders had a map of Ouachita Mountain._";
	text1 = "_Then you should begin the assault. It is very dangerous. Perhaps impossible. The raider forces are very strong._";
	text2 = "_Still, if Haven wants to command us, it is time for you to prove your worth._";

begintalknode;
	state = 23;
	nextstate = 24;
	condition = 1;
	question = "_Any advice?_";
	text1 = "_You have a route into the tunnels of the raiders. You have a staff which might counter their strange magics. You must do what needs to be done._";

begintalknode;
	state = 24;
	nextstate = -1;
	condition = 1;
	question = "_And what needs to be done?_";
	text1 = "_These raiders tried to kill you. Even in failure, you still looked weak before all of the Rokaj. You must root them out. Destroy them._";
	text2 = "_If you want to keep the respect of the Rokaj, this must be done._";

begintalknode;
	state = 10;
	nextstate = 26;
	condition = gf(36,11) > 0 && (gf(92,25) == 3 || gf(92,25) == 4) && has_spec_item(25) == 0;
	question = "_I am looking for a missing Havenite banner. I think it might be up here._";
	text1 = "You describe what you are looking for. _You want ... an old banner? From the Great Uprising? An old scrap of cloth? Why?_";

begintalknode;
	state = 26;
	nextstate = 27;
	condition = 1;
	question = "_Such matters are important to us._";
	text1 = "_The Rokaj and Haven both have strong senses of honor. They are just different. We are a poor people, and we can't afford to care about trinkets and scraps of cloth._";
	text2 = "_Still, I have heard rumors. I know where your banner might be._";

begintalknode;
	state = 27;
	nextstate = -1;
	condition = 1;
	question = "_Where should I look?_";
	text1 = "_The raiders want other Ro to come join them. They might be trying to use one of your symbols against you._";
	text2 = "_Look for your piece of cloth in the towers of Fort Cariaris._";
	code =
		sf(92,25,4);
		toggle_quest(17,4);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,10) < 4 && gf(42,11) > 0;
	question = "_I achieved victory in Ouachita Mountain. The raiders are no more._";
	text1 = "The Master listens to your tale quietly. At the end, he doesn't even nod. He merely says, _Your work is done. Haven, in a small way, has redeemed itself and shown itself strong._";
	text2 = "_Return to Raasa Lawita and report your victory. You will then be free to leave our lands. Goodbye, [P] of Haven._";
	action = END_TALK;
	code =
		toggle_quest(14,8);
	break;
	

// Captain Sparl

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "The second floor of city hall contains a small, well-stocked prison. The law of the Low Dhaga is harsh, and exceptional offenders are brought here from all over the province to receive the proper level of justice.";
	text2 = "A burly, armed warrior of the Low Dhaga approaches you and gives a little nod. He has the grim, serious demeanor of the experienced executioner. _Welcome, [P]. I am Captain Sparl. I am guided by the Master. You will be treated in a special way._";
	text3 = "Odd. Captain is a rank in the Haven army. He is no soldier and bears no insignia.";
	text5 = "Captain Sparl shows you around the cells and questioning hall, displaying all of the relevant implements. He is a grim man, but you have to admire his efficiency and work ethic.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "_You are a captain?_";
	text1 = "He nods. _Master Aurichalcum honored me with the title._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_Captain is a position in the army of Haven._";
	text1 = "_Oh. We know. The role I serve for him is that of captain. So that is what he calls me._";
	text2 = "This is sort of against the rules, but this probably isn't the right issue to worry about right now.";

begintalknode;
	state = 41;
	nextstate = 42;
	condition = 1;
	question = "_What do you do as 'captain'?_";
	text1 = "_Without law, the Rokaj is meaningless. Only wild clans, slaughtering each other. Peace is kept because villains can be brought here to receive real justice._";

begintalknode;
	state = 42;
	nextstate = 43;
	condition = 1;
	question = "_You give 'real justice'?_";
	text1 = "_Yes. Firm. Fair. Delivered by me, who has no tie to any clan. Brutal, but not excessive. Haven would not understand._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_Why wouldn't I understand?_";
	text1 = "_Most of Haven is wealthy and peaceful. The Low Dhaga is poor, harsh, and violent. Even in the best years, we are close to hunger. We must be hard here._";
	text2 = "_The Master and I, we must be like stone, so that others may sleep._";

begintalknode;
	state = 40;
	nextstate = 44;
	condition = 1;
	question = "_I am being treated in a 'special way'?_";
	text1 = "_Yes. The Master is harsh, but he made it known. You are to be treated with kindness and respect, even when you haven't earned it._";

begintalknode;
	state = 44;
	nextstate = 45;
	condition = 1;
	question = "_Why am I being treated so well?_";
	text1 = "_Your father was of the Low Dhaga, a true Ro. Though you were born in weaker lands, you have our blood. We must remember your weaknesses aren't your fault._";
	text2 = "_Your father is owed a debt._";

begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_Do you see me as one of the Ro?_";
	text1 = "He stares at you quietly.";

begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_You owe a debt to my father?_";
	text1 = "_While he lived, Consort Darmal did all he could to help the Rokaj. The Low Dhaga especially. We honor his memory by honoring his offspring._";
	text2 = "_This is why it was such an offense for Dhagan raiders to try to kill you._ It's also an offense because you are his [P], but you don't bring that up.";

begintalknode;
	state = 40;
	nextstate = 46;
	condition = 1;
	question = "_I was sent up here to hunt brigands._";
	text1 = "_We know of Raasa Lawita's petition. The Master has ordered his troops to stand down, so that Haven can show its strength and win back its honor in our eyes._";
	text2 = "Sparl is surprisingly frank for a Ro.";

begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_What would you do about the raiders if you could?_";
	text1 = "_They should all die. Preferably a slow, public execution. However, they have retreated to positions where their defenses are strong._";
	text2 = "_We could defeat them, but it would be slow and costly._";

begintalknode;
	state = 46;
	nextstate = 47;
	condition = 1;
	question = "_What does Aurichalcum have you doing?_";
	text1 = "_While we stand aside for you, we hunt. Many wild beasts and common rogues have emerged in the chaos. I find hunters and offer bounties._";
	text2 = "";

begintalknode;
	state = 47;
	nextstate = -1;
	condition = gf(47,13) == 0;
	question = "_Well, good luck with that._";
	text1 = "_Thank you, and good hunting to you. Excuse me. Justice must be given._ He turns to the cells.";
	action = END_TALK;
	
begintalknode;
	state = 47;
	nextstate = 48;
	condition = gf(47,13) < 2;
	question = "_Bounties, you say?_";
	text1 = "Too late, Sparl realizes his error. _Oh. Yes. I forgot. Havenite royalty loves the hunt. I am bound to be courteous. Yes, we offer a bounty._";
	text2 = "_There is a pack of enormous scorpions bothering miners to the north. Gigantic. I am looking for hunters to destroy them._";
	code = 
		set_flag(47,13,1);
		toggle_quest(62,1);
	break;

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Where are these scorpions?_";
	text1 = "_They are near what is called the Shattered Ruins. A huge jumble of blocks of stone. The creatures hunt the fields of rubble outside._";

begintalknode;
	state = 48;
	nextstate = 49;
	condition = 1;
	question = "_Gigantic scorpions? Where do you think they came from?_";
	text1 = "He frowns. _One who has escaped justice. A wild, angry woman. A witch._";

begintalknode;
	state = 49;
	nextstate = -1;
	condition = 1;
	question = "_A witch?_";
	text1 = "_Yes, a woman with uncontrolled power. She calls mighty beasts and sends them against Dhagan justice. She hides in the Oasis to the south. Protected by Haven._";
	text2 = "You try to learn more, but he will not speak about her more. Probably a wise diplomatic choice.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(47,13) == 1 && gf(125,11) > 0;
	question = "_I killed off those scorpions. I'll take my reward._";
	text1 = "You describe the battle. He approves. He leaves to fetch your reward: a silver ring with tiny metal spines coming out of it. _A humble reward for a [P], but this may have value._";
	text2 = "_Your reputation as a hunter is earned._";
	code = 
		set_flag(47,13,2);
		toggle_quest(62,10);
		award_party_xp(BIG_QUEST_XP);
		reward_give(371);

	break;		

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(47,13) > 1;
	question = "_I am always looking for interesting prey to hunt._";
	text1 = "He shakes his head. _We have other bounties, but we save those for young Dhagans. Those who need to prove their valor need ways to do it. You should not hog them all._";

begintalknode;
	state = 40;
	nextstate = 50;
	condition = gf(36,16) == 1;
	question = "_I spoke to Raiman. The man in the stocks._";
	text1 = "Captain Sparl's lip curls in disgust. _You should not waste your time with one such as him. He is a thief. He stole meat and a piece of jewelry. We caught him as he ran for the gate._";
	code =
		sf(36,26,1);
	break;
	
begintalknode;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "_He's not just being punished because you hate people from the Kranas?_";
	text1 = "_He is a rogue without honor. Of course he will tell you the lie that suits his purposes._";

begintalknode;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "_He is being punished so severely for theft?_";
	text1 = "_We are a poor land. We are always close to hunger. All must contribute. Theft is wrong._";
	text2 = "_He is lucky we are allowing him to keep all of his body parts. Of course, he can be freed if someone pays his fine. It is fifty coins. But who would give up so much wealth to help such a creature avoid a needed lesson?_";

begintalknode;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "_Theft is a serious crime._";
	text1 = "_Yes, and even more so in a harsh land like this one. We are always close to hunger._";
	text2 = "_He is lucky we are allowing him to keep all of his body parts. Of course, he can be freed if someone pays his fine. It is fifty coins. But who would give up so much wealth to help such a creature avoid a needed lesson?_";

begintalknode;
	state = 51;
	nextstate = 40;
	condition = coins_amount() >= 50;
	question = "_I will pay his freedom fee._ Pay 50 coins.";
	text1 = "Sparl is shocked. Also, a little disgusted. _So many suffer and you help that ... thing? Still, the law is the law._ He takes the money.";
	text2 = "_You can tell Raiman the good news and free him. I do not want to smell his stink._";
	code =
		sf(36,16,2);
		change_coins(-50,1);
		ro_faction(-2);
		violence(-3);
	break;

begintalknode;
	state = 51;
	nextstate = 40;
	condition = 1;
	question = "_I will not help him. Let him take his punishment._";
	text1 = "Captain Sparl nods. _A wise attitude, worthy of a child of the Ro._";
	code =
		sf(36,16,3);
		ro_faction(2);
		violence(2);
	break;

begintalknode;
	state = 51;
	nextstate = 40;
	condition = 1;
	question = "_I don't know what to do about him._";
	text1 = "_Who says you have to do anything? This is a Ro matter. We are capable and wise. We can handle it._";


	
// Erud Mirwa

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "This Erud must be a remarkable wizard. He has a pair of huge, brutish constructs lined up and facing him. They obediently stand utterly still. When he drops his concentration to turn and face you, they don't react. Impressive.";
	text2 = "He says, _I am Erud Mirwa. You are the [P] of Haven. I will answer questions. I will help. Those are the orders of Master Aurichalcum._";
	text5 = "Erud Mirwa stares at you, waiting for your next question. Every once in a while, one of his constructs twitches or makes a sound. He then glares at them until they are still again.";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "_What do you do here?_";
	text1 = "_I serve the Low Dhaga. I am a war mage._ When Mirwa talks, it is in short, clipped sentences. There is a pause between each one, as if assembling clumps of words is a constant struggle for him. _When I must, I fight._";
	text2 = "_You came to fight as well. To fight the brigands._";

begintalknode;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "_I did._";
	text1 = "_You have seen the Low Dhaga. Life is a struggle here. I help with our defenses._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_How do you help with the town defense?_";
	text1 = "_I create defenders. Like the brutes. I fill our warriors with power. I scorch the land with fire. The standard things._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_What research do you do here?_";
	text1 = "_I study the raiders. A new threat. Very strange. They are fast and dangerous. They command ka-beasts. Very odd._";

begintalknode;
	state = 70;
	nextstate = 73;
	condition = 1;
	question = "_Interesting brutes._";
	text1 = "_Yes. Made by me. Held stable and obedient. A skill of mine. Need to make defenders. Is Haven's fault._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_Haven's fault?_";
	text1 = "_We can't build proper city walls. Forbidden by Haven. So I make walls. Walls of muscle and claw._ He nods toward the brutes.";

begintalknode;
	state = 70;
	nextstate = 74;
	condition = 1;
	question = "_How can you provide help to me?_";
	text1 = "_I study the raiders. You got a petition, yes? From the Raasa? To destroy them._";

begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_Yes. I am here to hunt the raiders._";
	text1 = "_They are strong foes. Hiding in tunnels and ruins. Must besiege them. Very difficult. Would be easier if they did not have their strange power._";

begintalknode;
	state = 75;
	nextstate = 76;
	condition = 1;
	question = "_What is their strange power?_";
	text1 = "_They command the ka-beasts. Such creatures are mindless. Yet, they obey the raiders. Fearless and fierce._ His eyes gleam with greed. He wants this power for himself.";
	text2 = "_Trying to learn. How they do it. Do you know?_";

begintalknode;
	state = 76;
	nextstate = -1;
	condition = has_spec_item(22) > 0;
	question = "_I got this broken staff from a raider._ Show it.";
	text1 = "He looks at it and shakes his head. _Not useful. Is broken. Maybe an Erud in the south Dhaga will make use of it. Not me._";

begintalknode;
	state = 76;
	nextstate = -1;
	condition = has_spec_item(37) == 0;
	question = "_I don't know how they do it._";
	text1 = "_Learn, then. Find isolated raiders who command ka-beasts. Question them. Learn the secret._";
	text2 = "_Some raiders are isolated. They are in Fort Cariaris. South. The Master can tell you more._";

begintalknode;
	state = 76;
	nextstate = 77;
	condition = has_spec_item(37) > 0;
	question = "_I took this staff from a rebel in Fort Cariaris._";
	text1 = "You suddenly have his full attention. The brutes begin to shift around as his concentration weakens. _Yes. Can you sense it? It still has power. It can be used._";
	text2 = "_I can help. Give it to me._";

begintalknode;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "Give it.";
	text1 = "He takes the staff. Then he waves a hand. The brutes suddenly begin to dissolve.";
	text2 = "Without another word, he walks to the other end of the room. He sets the staff on a table and begins muttering spells.";
	action = END_TALK;
	code =
		force_char_status(3642,6,100);
		force_char_status(3643,6,100);
		set_spec_item(37,-1);
		sf(36,14,1);
	break;
	
begintalknode;
	state = 70;
	nextstate = 78;
	condition = gf(36,14) == 1;
	question = "_What did you do to my staff?_";
	text1 = "He goes to the table, gets the staff, and hands it back to you. It seems exactly the same.";
	text2 = "_The magic is weaker but easier to access. Find a ka-beast controlled. Wave the staff. You can disrupt the influence. Not control. Just disruption. Might be useful._";
	code =
		set_spec_item(38,1);
		sf(36,14,2);
	break;
	
begintalknode;
	state = 78;
	nextstate = -1;
	condition = 1;
	question = "_How did you change the staff?_";
	text1 = "_Is a simple device. Runes direct flow of energy. A careful flow. Calms the ka-beasts. I carved out some runes. Makes flow of magic unstable. Disrupts mind of ka-beast. Returns them to wild state._";
	text2 = "_Excuse me. I need to make new brutes. Thank you for information. I will use it._";
	action = END_TALK;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(36,14) == 2;
	question = "_Can you give me any more help?_";
	text1 = "Erud Mirwa is concentrating on making and controlling brutes. He shakes his head. _Done what I can. Need to defend Etzae. Would be easier if we had walls, but ..._ He shrugs.";
	action = END_TALK;


// Trader Tsuenami

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = "This is less a workshop than a showroom, where merchants can arrange deliveries of caravans of fine Dhagan stone. Miners and traders constantly stop in to negotiate, bicker, and drink endless cups of tea.";
	text2 = "A lone man sits in the back of the hall. He is wealthy and in charge of the place, but everyone takes care not to get too close to him. He doesn't look like he has slept in weeks.";
	text3 = "When you approach and he sees who you are, he orders a banquet of snacks set out for you. _Welcome, honored traveler! I am Trader Tsuenami, and this is my hall of trade. Much of our great province's stone is bought and sold at my humble tables._";
	text5 = "Trader Tsuenami sits and sips tea with you. He tries to seem calm and in control, but the fabled Ro resolve is failing him. He jumps at the slightest sound and constantly looks to the front door.";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = 101;
	condition = 1;
	question = "_What do you trade?_";
	text1 = "_Stone! All grades, all sizes, mined from our quarries and properly dressed._";

begintalknode;
	state = 101;
	nextstate = -1;
	condition = 1;
	question = "_All grades of stone?_";
	text1 = "_We have as many words for stone as the Kranas has words for trees. Whether it is crude gravel for your clan's paths or the finest marble blocks for a faraway palace, we can provide it._";

begintalknode;
	state = 101;
	nextstate = 102;
	condition = 1;
	question = "_My forts could use stone._";
	text1 = "_I ... Ah. Yes._ His eyes flick toward the door again. Dots of sweat appear on his forehead. _That is a problem. The building stone your forts need is not available._";

begintalknode;
	state = 102;
	nextstate = -1;
	condition = 1;
	question = "_No stone? Why?_";
	text1 = "_When the raiders began to attack, we had a run on medium-quality fortification stone. Then I ... I had a hard time getting anyone to deal with me._";
	text2 = "_Thanks to you, that last part is slowly getting better._";
	code =
		if (gf(36,17) < 2)
			rs(2);
	break;
	
begintalknode;
	state = 100;
	nextstate = 103;
	condition = 1;
	question = "_You seem to be quite prosperous._";
	text1 = "_I have been. I arrange trades in ways that makes all parties feel safe and prosperous. My own claims are prosperous. We are even finding new stone in the downward Dhaga._";
	text2 = "He smiles and slaps his belly. _It is necessary to work hard and well if I am to make my wives content._";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = 1;
	question = "_Sorry. Wives?_";
	text1 = "_Oh. Um. Did I say wives? I meant wife. My beloved wife._";
	text2 = "Must have been a mistake. Polygamy is illegal in all of Haven's vassals.";

begintalknode;
	state = 100;
	nextstate = 104;
	condition = gf(36,17) < 2;
	question = "_You are very nervous._";
	text1 = "_I ..._ He thinks about this. _I ... am. I don't want to trouble an honored guest. But ... Some problems can't be ignored, even by a Ro._";

begintalknode;
	state = 104;
	nextstate = -1;
	condition = gf(36,17) == 0;
	question = "_Well, I don't want to disturb you. I'll be going._";
	text1 = "_That is probably best. I don't want to dishonor myself in front of you._";
	action = END_TALK;
	
begintalknode;
	state = 104;
	nextstate = 105;
	condition = 1;
	question = "_I am interested in your problem._";
	text1 = "_Well, I am a targeted man. Someone paid the Geld Nas to try to kill me. That is why I sit here alone. Everyone wisely keeps a distance from me._ As he talks, everyone in the hall quietly finds a good reason to retreat to the far end of the room.";
	text2 = "_Now I wait for death and fail to figure out what to do._";
	code = 
		set_flag(36,17,1);
		toggle_quest(63,1);
	break;

begintalknode;
	state = 105;
	nextstate = -1;
	condition = 1;
	question = "_How do you know that the Geld Nas want to kill you?_";
	text1 = "_I used to have bodyguards. A lone assassin attacked us in the street. My guards chased him off. He dropped a Geld Nas dagger as he fled, and we knew._";
	text2 = "_My guards all quit after that, of course. They don't want to fight the assassin's guild. They wisely left me to my fate._";

begintalknode;
	state = 105;
	nextstate = -1;
	condition = 1;
	question = "_Why does the Geld Nas want to kill you?_";
	text1 = "_I don't know! That is the madness of it. If someone told me, I might be able to honorably surrender. Instead, I am marked for death._";

begintalknode;
	state = 105;
	nextstate = -1;
	condition = 1;
	question = "_Is there any advantage to me getting involved in this?_";
	text1 = "He thinks about this. _Stone. I can get you stone. Quality building stone. For your forts. If only you can help me._ He quivers with fear. A surprising and pitiful display, but you can understand it.";

begintalknode;
	state = 105;
	nextstate = 106;
	condition = 1;
	question = "_What can I do about it?_";
	text1 = "_You can speak on my behalf. Haven is one of the few forces the Geld Nas answer to._";
	text2 = "_The place to go is the Wyrm's Teeth, to the north. It is a secret place where the Geld Nas gathers, plans, and takes jobs._";

begintalknode;
	state = 106;
	nextstate = -1;
	condition = 1;
	question = "_If it's a secret, how do you know it?_";
	text1 = "_It is the sort of secret everyone knows. They just don't talk about it. Too dangerous._";

begintalknode;
	state = 100;
	nextstate = 107;
	condition = gf(36,17) == 1 && gf(41,14) == 1;
	question = "_The Geld Nas were sent to kill you because you are expanding into the southern Low Dhaga._";
	text1 = "He is shocked. _That ... That is why I was marked for death? I had no idea the downward Dhagans would be so protective. I mean, I knew they wanted us out. but ..._ He shakes his head.";

begintalknode;
	state = 107;
	nextstate = -1;
	condition = 1;
	question = "_So what will you do?_";
	text1 = "_I will withdraw from the lower Dhaga. Effective immediately. I will call my workers home. It will be expensive. Yet, my life is worth more to me._";
	text2 = "_Thank you, [P]. You did me a great kindness, and I will respond._ He gives you a bar of deep metal. _I will also have stone sent to your forts. Less than I might have, since I have now lost my southern quarries. Still, should be worth your trouble._";
	text3 = "_Now I must go. Begin rebuilding. Thank you for your aid, Haven!_ He grabs some scrolls and runs off.";
	action = END_TALK;
	code = 
		set_flag(36,17,2);
		toggle_quest(63,10);
		award_party_xp(MED_QUEST_XP);
		activate_mine_resource(33);
		change_crafting(0,0,0,1,0);
	break;		

begintalknode;
	state = 100;
	nextstate = 108;
	condition = gf(36,17) == 1 && gf(41,14) == 2;
	question = "_The Geld Nas will no longer trouble you._";
	text1 = "He leans forward and whispers, _How? How did you manage that?_";

begintalknode;
	state = 108;
	nextstate = -1;
	condition = 1;
	question = "_Best not to ask too many questions._";
	text1 = "_Well, not even the Geld Nas can ignore the will of Haven. I will trust your word._";
	text2 = "He gives you a bar of deep metal. _I will also have stone sent to your forts. A generous amount. More than enough to be worth your trouble._";
	text3 = "_Now I must go. Begin rebuilding. Thank you for your aid, Haven!_ He grabs some scrolls and runs off.";
	action = END_TALK;
	code = 
		set_flag(36,17,2);
		toggle_quest(63,10);
		award_party_xp(BIG_QUEST_XP);
		activate_mine_resource(34);
		change_crafting(0,0,0,1,0);
	break;		

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(36,17) > 1;
	question = "_What are you doing now that you are safe from assassins?_";
	text1 = "_Rebuilding. Not just my quarries, but my connections and my trust. Still, I was attacked by the assassins' guild, and I survived. In the long run, my reputation will improve. Plus, I will live. I thank you._";


// Builder Zmaray

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "This workshop looks more like a mage's laboratory. It is clean and quiet, and there are pens, ink, and piles of parchment everywhere. A closer look reveals that you have stumbled into a den of architects.";
	text2 = "An old, dignified man with ink-stained fingers approaches. He has the serious look of the Ro, but his eyes are alert and full of intelligence. _Welcome, welcome, my [P]. I am Builder Alais Zmaray._";
	text3 = "_My clan turns dreams into stone, and we have worked with Havenites many times. We do our best, despite our troubles._";
	text5 = "As Builder Zmaray speaks with you, he walks from desk to desk, looking at plans and schematics. Sometimes, he makes a note on one in charcoal. Other times, he rolls one up and hides it away, to keep outsiders from learning his clan's secrets.";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = 131;
	condition = 1;
	question = "_Tell me about the Zmaray clan._";
	text1 = "_We are builders. We help take the mere rough stone of the Low Dhaga and turn it into spires and halls. Our knowledge is the pride of the Rokaj!_";

begintalknode;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "_So you gather stone._";
	text1 = "He is shocked. _No! Make no mistake. We honor the art of the stonemasons. However, such stone is useless until it is made into buildings. We elevate stone from dead lumps into living halls!_";

begintalknode;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "_Are there many architect clans?_";
	text1 = "_Few. We are old and honored families. The Zmaray have designed buildings for two centuries. Each clan has its own styles and its own secrets, carefully guarded._";

begintalknode;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "_Are you related to my father's clan?_";
	text1 = "_I only wish!_ His eyes gleam with greed. _Imagine what we could do with such connections!_";

begintalknode;
	state = 130;
	nextstate = 132;
	condition = 1;
	question = "_What sort of things do you build?_";
	text1 = "_Any way to assemble stone, we do, from a lowly clan hall to a tower or cathedral. We work both in the Rokaj and other vassals._";
	text2 = "_We are very versatile, though, in the Ro, we can't make what we should be building most._";

begintalknode;
	state = 132;
	nextstate = 133;
	condition = 1;
	question = "_What do you want to be building most?_";
	text1 = "_Walls for cities, to protect us from raiders, thugs, and beasts._";
	text2 = "_It is what we should have, but Haven has chosen to forbid it because of crimes committed a century ago._";
	code =
		if (gf(36,19) > 0)
			rs(2);
	break;
	
begintalknode;
	state = 133;
	nextstate = -1;
	condition = gf(36,19) == 0;
	question = "_You are being insolent, Ro._";
	text1 = "_I apologize, [P]. We are a frank people. Haven is just. I withdraw my words._";
	code =
		ro_faction(-2);
		sf(36,19,1);
	break;

begintalknode;
	state = 133;
	nextstate = -1;
	condition = gf(36,19) == 0;
	question = "_If I can, I will consider loosening Haven's control._";
	text1 = "Builder Zmaray bows. _It is more than your humble servant deserves, but I am grateful._";
	code =
		ro_faction(2);
		sf(36,19,1);
	break;
	
begintalknode;
	state = 130;
	nextstate = 134;
	condition = gf(36,18) < 2;
	question = "_You mentioned that you are having troubles?_";
	text1 = "_Oh, you noticed I said that? I did not mean to burden you._ You doubt that. _It is only, we have lost one of our best sources for stone. It has made it much harder to do our work._";
	text2 = "";

begintalknode;
	state = 134;
	nextstate = 135;
	condition = 1;
	question = "_Tell me more._";
	text1 = "_There is a massive ruin to the north, centuries old, in a miserable, barren stretch of rocky desert. We get much of our best stone by dismantling its walls and roads._";
	text2 = "_However, it has been infested, and my workers can't get in there to extract the stone. If you could help us, I would pay a bounty in fine stone._";
	code = 
		set_flag(36,18,1);
		toggle_quest(64,1);
	break;

begintalknode;
	state = 135;
	nextstate = -1;
	condition = 1;
	question = "_What infests the ruin?_";
	text1 = "_Beasts of all sorts. Scorpions and serpents. Scuttling, misshaped creatures of all sorts. One day we see one. Then three._";
	text2 = "_Now it is overrun, and we don't know why._";

begintalknode;
	state = 135;
	nextstate = -1;
	condition = 1;
	question = "_So you just take that ruin apart for the stone?_";
	text1 = "_Of course. It is good stone. Clean, weathered, very nicely dressed, and just left sitting there in the desert. It was a very good claim to grab. Nobody else was using it!_";

begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(36,18) == 1 && gf(39,11) > 0;
	question = "_I have recaptured the Shattered Ruin._";
	text1 = "You tell Builder Zmaray. He is pleased. _It sounds safe to send my workers in. I'll add an armed escort. Expensive, but necessary. I'll pass the price on to the customer._";
	text2 = "_As for Haven, you will be paid. Deliveries of fine stone will arrive in [F4] very soon. Of course, that is only the beginning. We can get more stone there._";
	code = 
		set_flag(36,18,2);
		toggle_quest(64,3);
		award_party_xp(BIG_QUEST_XP);

		activate_mine_resource(35);
	break;		

begintalknode;
	state = 130;
	nextstate = 136;
	condition = gf(36,18) == 2 || gf(36,18) == 3;
	question = "_We can get more stone out of those ruins?_";
	text1 = "_Those ruins have many stone vaults under them. Finely dressed stone, only needing to be knocked loose and carried up._";
	text2 = "_I only fear that there are pests in those catacombs. If you can check them out and make sure they are safe, I can send in my workers._";
	code = 
		set_flag(36,18,3);
		toggle_quest(64,4);
	break;

begintalknode;
	state = 136;
	nextstate = -1;
	condition = 1;
	question = "_What lurks in the vaults under the city?_";
	text1 = "_Ummmm ... Well, I've no idea, actually. My scouts saw shadows in the dark. They ran. I had the place barred up, and we haven't been down there since. I'll have the vault unbarred for you, of course._";

begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(36,18) == 3 && gf(39,12) > 0;
	question = "_I cleared out the vaults under the ruin._";
	text1 = "You tell him the tale. He shudders with horror and greed. _A grim place, but now it is safe. And so much stone! I will hire more workers immediately. Haven will receive its precious bounty very soon._";
	code = 
		set_flag(36,18,4);
		toggle_quest(64,10);
		award_party_xp(BIG_QUEST_XP);

		activate_mine_resource(36);
	break;		

begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(36,18) > 3;
	question = "_Any more good sources of stone near here?_";
	text1 = "_We are looking for more, though we usually leave finding claims to the other clans. Trying to dig stone out of someone else's claim is a great way to get the Geld Nas after you._";

// Raiman

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = "There are three worn posts by the road leading into the city, where criminals can be tied up and left to suffer for their crimes. The sun is hot, and bowls of rotting fruit are helpfully provided to pelt the miscreants.";
	text2 = "One skinny, sunburned man watches as you pass. His arms are tied up over his head, and both his arms and chest bear multiple bruises. _Please. Please, help poor Raiman, victim of injustice._";
	text5 = "Raiman hangs from his ropes, swaying back and forth and moaning sadly. _Mercy! Please, mercy!_";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "_Hello._";
	text1 = "_Help me! Help me please, noble visitor! Save me from the cruelty of these sandfolk._";

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "Throw some fruit at him.";
	text1 = "You pick up a rotten apple and fling it at the prisoner. It hits him in the chest with a loud splat. He moans. Very satisfying.";
	action = END_TALK;
	
begintalknode;
	state = 160;
	nextstate = 161;
	condition = 1;
	question = "_What are you doing here?_";
	text1 = "_I am sentenced to hang here, out in the sun every day, because of the cruelty of the folk here. Their hatred of outsiders._";

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "When he sees that you are going, he starts moaning for mercy to other passers-by.";
	action = END_TALK;

begintalknode;
	state = 161;
	nextstate = -1;
	condition = gf(36,26) > 0;
	question = "_And you're not hanging up here because you're a common thief?_";
	text1 = "_Untrue! Of course, when they unjustly arrested me, they made up a lie to justify it. It is the way of the law here._";

begintalknode;
	state = 161;
	nextstate = 162;
	condition = 1;
	question = "_The cruelty of the Dhagans?_";
	text1 = "_Hear my sad tale. I am a man of the Kranas, wandering from city to city to work small jobs and find my fortune. Yet, the cruel upward Dhagans? They fear and hate outsiders. They grabbed me and hung me up here as an example to other travelers._";

begintalknode;
	state = 162;
	nextstate = 163;
	condition = 1;
	question = "_Just because you are from another province? I am skeptical._";
	text1 = "_Don't you know the Dhagans are the greatest of raiders? All other provinces fear them. There is much distrust between the lands of the Rokaj. I am but an example. Oh, how I suffer! If only I could see the beautiful woods of my home before I die!_";

begintalknode;
	state = 162;
	nextstate = 163;
	condition = 1;
	question = "_Such savagery does seem believable._";
	text1 = "_It is our way, alas. The Dhagans are the greatest of raiders. All other provinces fear them. There is much distrust between the Ro's lands. I am but an example. If only I could see the beautiful woods of my home before I die!_";

begintalknode;
	state = 163;
	nextstate = 164;
	condition = 1;
	question = "_How can I help?_";
	text1 = "_I was sentenced by Captain Sparl, in the main hall. He gave me a fine for loitering. When I couldn't pay, he strung me up here. Please, noble visitor, go to that cruel man and ask him to free me!_";

begintalknode;
	state = 164;
	nextstate = -1;
	condition = 1;
	question = "_Is there anything in this for me?_";
	text1 = "Raiman motions for you to come closer. He whispers, _I may have heard some rumors. Of raiders, and hidden lairs, and treasure. If I was able to rest and eat in safety, I could tell you much of value._";

begintalknode;
	state = 164;
	nextstate = -1;
	condition = 1;
	question = "_I will show mercy to you if I can._";
	text1 = "_Thank you, wise noble! I am so grateful to have a little scrap of hope._ You move on.";
	action = END_TALK;
	code =
		if (gf(36,16) == 0)
			sf(36,16,1);
	break;
	
begintalknode;
	state = 164;
	nextstate = -1;
	condition = 1;
	question = "_I don't think I'll get involved._";
	text1 = "_Oh, will nobody take a moment to help a poor beggar? Will nobody give this poor, hungry, sunburned soul a little scrap of hope?_ You move on.";
	action = END_TALK;
	
begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(36,16) == 2;
	question = "_I paid your fine._ Free him.";
	text1 = "When he is free, Raiman stretches out his arms. _Thank you so much, mighty noble. I will go clean myself and become presentable. Meet me in the mens' quarters in the inn, and I will tell you all I know._";
	text2 = "Before you can respond, he runs off to the east.";
	action = END_TALK;
	code =
		sf(36,16,4);
		erase_char(3605);
		
	break;
	
begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(36,16) == 3;
	question = "_You are a thief. You will pay for your crime._";
	text1 = "_Lies! Lies to justify punishing an innocent man! Your mockery only compounds this injustice!_ He looks away from you.";
	action = END_TALK;
	code =
		sf(36,16,5);
		
	break;
	
begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(36,16) == 5;
	question = "_Enjoying your punishment, thief?_";
	text1 = "_Go ahead! Mock me! Compound this injustice!_ He looks away from you.";
	action = END_TALK;

		
// Gan

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = "The atmosphere in the inn is mostly quiet and tense. People huddle in tight groups and talk in low voices. This corner, however, is dominated by a tall, gaunt, boisterous man. He is a constant source of drinks and tales of adventure.";
	text2 = "When he sees you, he finishes his current tale and moves to join you. _I know the look of another traveler! One who has faced danger and the unknown. Welcome, Haven. I am Gan the Wanderer, explorer of the Rokaj._";
	text5 = "Gan the Wanderer is determined to buy you as many drinks as you will take and trade as many tales as you can stand. Even if half of what he says is a lie, he has been all over the Rokaj and explored a lot of new territory.";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "_Where are you from, explorer?_";
	text1 = "_I was born in the High Litha. A good, strong boy of the Ro. Couldn't stay up there, though. Not at all. Had to strike out into the world._";

begintalknode;
	state = 191;
	nextstate = 192;
	condition = 1;
	question = "_What drove you out of the High Litha?_";
	text1 = "_My intolerance for boredom! The whole point of the High Litha is to never change. To be the measure the Ro judges itself by. To live in stasis._";

begintalknode;
	state = 192;
	nextstate = -1;
	condition = 1;
	question = "_Stasis?_";
	text1 = "_They guard the Deep Truth of the Rokaj, and that can't ever be allowed to change. Not if you know what's good for you._";
	text2 = "_So I left. Went out to look for adventure. I found it, believe me._";

begintalknode;
	state = 190;
	nextstate = 193;
	condition = 1;
	question = "_Where have you explored?_";
	text1 = "_Everywhere the roads lead. The wilds around the Rokaj. The Kranas and the Low Dhaga. I'm full of tales, as you can probably tell._";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the wilds._";
	text1 = "_The Rokaj is separated from its neighbors by hundreds of miles of wilderness, full of rich lands and savage beasts. We're slowly expanding into it. Better that land goes to fierce warriors, and not the sniveling Achaemin or whoever._";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "_What did you find in the Kranas Woods?_";
	text1 = "_Something nobody had ever seen before: A new grove. In a stand of trees, I found a tiny bud, size of your head, that would grow into a new walking tree._";
	text2 = "_Told the druids about it, of course. They were most grateful. Swore me to secrecy about its location._";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "_What have you found in the Low Dhaga?_";
	text1 = "_A lost valley, not far east of Etzae. Full of lava and blasted ground, approached through a tiny pass._";
	text2 = "_Would have seen more, but a drake was guarding the way. I will return one day._";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "_I'll listen to your tales._";
	text1 = "He tells you several stories. Mountains never seen by the eyes of man. Narrow escapes from savage ka-boars. Treasures won and lost.";
	text2 = "Standard fare. A sliver of truth in a mountain of other stuff. Still, there is no denying that this man has gotten around.";

begintalknode;
	state = 190;
	nextstate = 194;
	condition = 1;
	question = "_Where are you going to explore now?_";
	text1 = "_The last unexplored region of the Rokaj: The underworld! Full of darkness, perils, and treasure. I long to descend._";
	text2 = "_There is only one thing I need to know._";
	code =
		if (gf(36,27) > 1)
			rs(2);
	break;
	
begintalknode;
	state = 194;
	nextstate = 195;
	condition = 1;
	question = "_What do you need to learn?_";
	text1 = "_How to enter it! I've heard the rumors. There are two ways into the underworld, one in each half of the Low Dhaga. I need to find them._";
	text2 = "He grins. _You wander around, right? You're a hunter and explorer too, yes? If you can tell me where those two paths are, I'll give you some of the trinkets from my travels._";
	code = 
		set_flag(36,27,1);
		toggle_quest(65,1);
	break;

begintalknode;
	state = 195;
	nextstate = -1;
	condition = 1;
	question = "_Where should I look for these paths?_";
	text1 = "_Look for tunnels burrowed in the walls of the Low Dhaga. I believe in the eastern sort of direction, if the rumors are true. When you look out on the underworld, you'll have found the paths I seek._";

begintalknode;
	state = 195;
	nextstate = -1;
	condition = 1;
	question = "_Why don't you just ask the Low Dhagans?_";
	text1 = "_Because it's a secret. There's wealth down there. The Dhagans who found the paths hide them, so they can get the wealth for themselves._";
	text2 = "_That's why I'm asking you. Ask the wrong person about these things, and your throat gets slit._";

begintalknode;
	state = 190;
	nextstate = -1;
	condition = gf(36,27) == 1 && gf(36,28) == 0 && gf(169,1) > 0;
	question = "_I entered the underworld through the Firepits._ Describe the route.";
	text1 = "_A path through lava? Guarded by a greedy drake? Erudico ruins? Amazing! I'll need to make some sketches of it._";
	text2 = "_Well done. That is the southern path discovered._";
	code =
		sf(36,28,1);
	break;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = gf(36,27) == 1 && gf(36,29) == 0 && gf(128,1) > 0;
	question = "_I entered the underworld through the Wyrm's Teeth._ Describe the route.";
	text1 = "_A valley of assassins? A risky route, though the Geld Nas will let those by who know how to keep a secret and not cause trouble._";
	text2 = "_Well done. That is the northern path discovered._";
	code =
		sf(36,29,1);
	break;
		
begintalknode;
	state = 190;
	nextstate = -1;
	condition = gf(36,27) == 1 && gf(36,28) > 0 && gf(36,29) > 0;
	question = "_Have I told you enough about the underworld?_";
	text1 = "_You have. I know all I need. Soon, I'll be doing what I love best: Finding secrets and causing trouble._";
	text2 = "He gives you some old scrolls and a crystal. _There's some materials for you. Sort of thing that can do you good in the Tower of the Erudico. Hope this is fair payment for your aid!_";
	code = 
		set_flag(36,27,2);
		toggle_quest(65,10);
		award_party_xp(BIG_QUEST_XP);

		change_crafting(1,1,0,0,0);
	break;		

begintalknode;
	state = 190;
	nextstate = -1;
	condition = gf(36,27) == 2;
	question = "_So. When are you going to the underworld?_";
	text1 = "_Soon! First, I must prepare. Rations. Guards. Lights. I have no intention of getting killed down there._";
	text2 = "_Don't worry, noble of Haven. You'll have the chance to hear a few new tales soon enough!_ You chat with the fellow for a bit more and move on.";
	action = END_TALK;
	
// Trader Haska

begintalknode;
	tag = 230;
	state = -1;
	nextstate = 230;
	condition = 1;
	question = "Name";
	text1 = "There is an old Dhagan man behind the counter of the trading post. He nods grimly when you approach. The men sitting around the fire get very quiet, hoping to hear an interesting bit of conversation.";
	text2 = "The merchant says, _I'm Trader Haska. Supplies for travelers and merchants. Buying and selling. You're the half-Ro visitor, right? What you need?_";
	text5 = "Trader Haska trades with you, while saying the minimum number of words possible. _What do you need, child of the Ro?_";
	action = INTRO;

begintalknode;
	state = 230;
	nextstate = -1;
	condition = 1;
	question = "_Hear any interesting gossip?_";
	text1 = "_Nope. None at all. I'd share news if I could._";
	text2 = "You very much doubt this is true.";

begintalknode;
	state = 230;
	nextstate = 231;
	condition = 1;
	question = "_I am the child of Consort Darmal._";
	text1 = "The others in the room listen intently. _Hmmm. Yes. I met him. Darmal._ Haska nods.";

begintalknode;
	state = 231;
	nextstate = 232;
	condition = 1;
	question = "_How did you meet my father?_";
	text1 = "_He came to Etzae on a few of his visits. He came here, you know. He remembered to look after his people. Bought supplies for the road in my shop._";

begintalknode;
	state = 232;
	nextstate = -1;
	condition = 1;
	question = "_Was anyone traveling with him?_";
	text1 = "_No. I know he brought his whole family to the Ro, long ago. One trip. Then he came alone after that. Then he died, and Haven ... Haven was just in its own way._";

begintalknode;
	state = 232;
	nextstate = 233;
	condition = 1;
	question = "_What did you think of him?_";
	text1 = "_I ... I liked him. Noble fellow. Good warrior._ His eyebrow twitches. This is not the whole truth.";

begintalknode;
	state = 233;
	nextstate = 230;
	condition = 1;
	question = "_Did you really like him?_";
	text1 = "He clears his throat. _Of course. Haven is noble and just, so of course it would welcome one of us into the palace. He looked after his people. Lots of admirers around here for Darmal._";
	text2 = "_You need anything?_";

begintalknode;
	state = 230;
	nextstate = 234;
	condition = 1;
	question = "_I would like to trade._";
	text1 = "_I buy and sell to travelers and adventurers. Let me know what you need._";
	text2 = "_I have heard good things about you, Haven. If you are interested, I also have some specials for valued customers._";
	code =
		if (gf(80,16) < 108)
			rs(2);
	break;

begintalknode;
	state = 234;
	nextstate = -1;
	condition = 1;
	question = "_What do you have for sale?_";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Haska's Shop",
		  "shopdesc.",
		  38,3,0);	
	break;

begintalknode;
	state = 234;
	nextstate = -1;
	condition = gf(80,16) >= 108;
	question = "_I'd like to see your specials._";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Haska's Specials",
		  "shopdesc.",
		  39,3,0);	
	break;

begintalknode;
	state = 234;
	nextstate = -1;
	condition = 1;
	question = "_I have goods to sell._";
	text1 = "You conclude your business.";	
	code = 
		start_alter_items(0);
	break;

begintalknode;
	state = 234;
	nextstate = -1;
	condition = 1;
	question = "_That is all I need._";
	text1 = "_Thanks for stopping by._ He disappears into the shelves of goods behind him.";
	action = END_TALK;
	
				